error at blog making tutorial in django tutorial playlist

by: Aman Sharma, 8 years ago


OperationalError at /blog/
no such table: blog_post
Request Method: GET
Request URL: http://127.0.0.1:8000/blog/
Django Version: 1.9.7
Exception Type: OperationalError
Exception Value:
no such table: blog_post
Exception Location: C:Python34libsite-packagesdjangodbbackendssqlite3base.py in execute, line 323
Python Executable: C:Python34python.exe
Python Version: 3.4.4
Python Path:
['C:UsersYogeshDesktopDjango tutorialmysite',
'C:Windowssystem32python34.zip',
'C:Python34DLLs',
'C:Python34lib',
'C:Python34',
'C:Python34libsite-packages']
Server time: Mon, 4 Jul 2016 18:22:47 +0530
Error during template rendering

In template C:UsersYogeshDesktopDjango tutorialmysiteblogtemplatesblogblog.html, error at line 3
no such table: blog_post
1 {% extends "personal/header.html" %}
2 {% block content %}
3 {% for post in object_list %}
4 <h5>{{ post.date|date:"Y-m-d" }}<a href="/blog/{{post.id}}"> {{ post.title}}</a></h5>
5 {% endfor %}
6 {% endblock %}
7

how can i remove this error in making blog.
i've done this according to your django tutorial but i get this error.
please reply so that it would help me to correct this error.



You must be logged in to post. Please login or register an account.



The main issue is: no such table: blog_post

So in your database, it sounds like there exists no table named blog_post. Did you do your migrations after making the model for it?

-Harrison 8 years ago

You must be logged in to post. Please login or register an account.


yeah I do migrations after making model but this error occurs again and again .
sir suggest me another way to  solve this error.

-Aman Sharma 8 years ago

You must be logged in to post. Please login or register an account.


Thanks for the reply . now error is solved and program is running.
regards

-Aman Sharma 8 years ago

You must be logged in to post. Please login or register an account.